#ifndef _CH32F103_NRF24_H
#define _CH32F103_NRF24_H

#include "debug.h"

enum {
	NRF24_PORT_CMD_ERROR  = 0,
	NRF24_PORT_CMD_UNKNOW = NRF24_PORT_CMD_ERROR,
	NRF24_PORT_CMD_CE_ENABLE  = 1,
	NRF24_PORT_CMD_CE_DISABLE = 2,
	NRF24_PORT_CMD_CSN_ENABLE  = 3,
	NRF24_PORT_CMD_CSN_DISABLE  = 4,
};

typedef struct{
	void(*init)(void);
	void(*deinit)(void);
	uint8_t(*transfer)(uint8_t);
	void(*ioctl)(uint8_t, uint8_t*);
} nrf24_port_t;

nrf24_port_t* get_nrf24_port(void);

#endif
